package com.soft.javase.day07.balancenotenoughexception;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/26
 */
public class ExceptionTest {
    public static void main(String[] args) {
        Account account = new Account(111L, 500.0);
        try {
            account.withdraw(200);
        } catch (BalanceNotEnoughException e) {
            e.printStackTrace();
        }finally {
            System.out.println(account);
        }
    }
}
